<?php
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view');

class SimplelistingViewListing extends JView
{

    function displayShow($simplelistingId)
	{
        $document = & JFactory::getDocument();
        $params = &JComponentHelper::getParams( 'com_simplelisting');

        $model = $this->getModel();
        $simplelisting = $model->getSimplelistingLists($simplelistingId);

        
        /* Parameters */
        $currency             = $params->get('currency_symbol', '');
        $listTitle            = $params->get('listing_title', '');
        $priceLabel           = $params->get('price_label', '');
        $categoryLabel        = $params->get('category_label', '');
        $addressLabel         = $params->get('address_label', '');
        $typeLabel            = $params->get('type_label', '');
        $countryLabel         = $params->get('country_label', '');
        $extrasLabel          = $params->get('extras_label', '');
        $layoutLabel          = $params->get('layout_label', '');
        $facilitiesLabel      = $params->get('facilities_label', '');
        $postedLabel          = $params->get('posted_label', '');
        $select_theme         = $params->get('select_theme', '');
        $select_captcha_theme = $params->get('select_captcha_theme', '');
        $select_captcha_lang  = $params->get('select_captcha_lang', '');
        $currencyformat       = $params->get('currency_format');

        $this->assignRef('select_theme', $select_theme);
        $this->assignRef('select_captcha_theme', $select_captcha_theme);
        $this->assignRef('select_captcha_lang',  $select_captcha_lang);
        $this->assignRef('listtitle', $listTitle);
        $this->assignRef('price_label', $priceLabel);
        $this->assignRef('category_label', $categoryLabel);
        $this->assignRef('type_label', $typeLabel);
        $this->assignRef('address_label', $addressLabel);
        $this->assignRef('country_label', $countryLabel);
        $this->assignRef('extras_label', $extrasLabel);
        $this->assignRef('layout_label', $layoutLabel);
        $this->assignRef('facilities_label', $facilitiesLabel);
        $this->assignRef('posted_label', $postedLabel);
        $this->assignRef('currency', $currency);
        $this->assignRef('currency_format', $currencyformat);
        $this->assignRef('params', $params) ;
        $this->assignRef('simplelisting', $simplelisting);

        parent::display();
	}
}
?>
